<div id="MonthlyStatisticalReportOfAgencyTasks">
  <yu-panel title="代办任务月度统计报表">
    <yu-xform label-width="110px" ref="MonthlyStatisticalReportOfAgencyTasksInfoSearch" related-table-name="MonthlyStatisticalReportOfAgencyTasksTable" form-type="search"
              :custom-search-fn="searchFn">
      <yu-xform-group :column="3">
        <yu-xform-item label="机构名称" placeholder="机构名称" name="gridName" ctype="input"></yu-xform-item>
        <yu-xform-item label="档案号" placeholder="档案号" name="userNo" ctype="input"></yu-xform-item>
        <yu-xform-item label="统计日期" placeholder="统计日期" ctype="datepicker" name="etlDt" ></yu-xform-item>
      </yu-xform-group>
    </yu-xform>
    <div style="justify-content:space-between;display: flex">
      <div>
        <yu-button type="warning" v-loading="loading"  @click="exportExcel()" >导出数据</yu-button>
      </div>
    </div>
    <div style="height: 30px"></div>
    <yu-xtable ref="MonthlyStatisticalReportOfAgencyTasksTable" :base-params="MonthlyStatisticalReportOfAgencyTasksData" :data-url="funcDataUrl" request-type="get" row-number style="width: 100%">
      <yu-xtable-column prop="etlDt" label="统计日期" width="120px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="gridName" label="机构名称" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="userNo" label="档案号" width="100px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="userName" label="网格员名称" width="120px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="positions" label="岗位" width="120px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="taskTotalNum" label="待办任务总数" width="100px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="taskDoNum" label="实际办理条数" width="130px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="taskUndoNum" label="未办理条数" width="100px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="completeRate" label="完成率%" width="100px" align="center" show-overflow-tooltip></yu-xtable-column>
    </yu-xtable>
  </yu-panel>
</div>
